/*
 * @Author: zwc 6537397+uni-yunApp@user.noreply.gitee.com
 * @Date: 2023-03-15 16:26:57
 * @LastEditors: zwc 6537397+uni-yunApp@user.noreply.gitee.com
 * @LastEditTime: 2023-09-13 12:46:49
 * @FilePath: \project-template\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
 import { createRouter, createWebHashHistory , RouteRecordRaw } from 'vue-router';


 const routes: Array<RouteRecordRaw> = [
   {
           path: '/',
           name: 'Index',
           component: () => import('@/components/layout/index.vue'),
           meta: {
                       title: '分类',
                       keepAlive: true,
            //            requireAuth: true,
            // affix: true,
                   },
           
           children:[
      {
        path:'/hello',
         component: () => import('@/views/HelloWorld.vue'),
        name:'hello',
        meta: {
                     title: '首页',
                     keepAlive: true,
                    
         
                 },
                
      }
    ]
  }
    
 ]

 const router = createRouter({
   history: createWebHashHistory (),
   routes
 });

 export default router;